package com.chao.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chao.entity.Class;
import com.chao.mapper.ClassMapper;
import com.chao.service.ClassService;
import org.springframework.stereotype.Service;

@Service
public class ClassServiceImpl extends ServiceImpl<ClassMapper, Class> implements ClassService {
    @Override
    public Page<Class> selectAll(Page<Class> page) {
        return getBaseMapper().selectAll(page);
    }

    @Override
    public int addOfPrimary(Class clazz) {
        return getBaseMapper().addOfPrimary(clazz);
    }
}
